//
//  JSViewController42.swift
//  RXSwiftTest
//
//  Created by ZhangBo on 2019/6/19.
//  Copyright © 2019 ZhangBo. All rights reserved.
//

import UIKit
import RxSwift
import RxCocoa

class JSViewController42: BaseViewController {
    let disposeBag = DisposeBag()

    override func viewDidLoad() {
        super.viewDidLoad()


        let button = UIButton(frame: CGRect(x: 0, y: 0, width: 120, height: 44));
        button.setTitle("click me", for: .normal)
        view.addSubview(button)
        button.center = view.center
        button.backgroundColor = .darkGray
        button.rx.tap.subscribe(onNext: { (e) in
            print(e)

            let test = TestViewController()
            self.navigationController?.pushViewController(test, animated: true)

        }).disposed(by: disposeBag)

    }
}
